﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Developer.Entity;

namespace Developer.Service
{
    public class UserService:BaseService<Users>
    {
        public int GetNewId()
        {
            return 1;
        }

        public static void ResetPassword(string account, string pwd)
        {
            var user = UserService.GetAll().FirstOrDefault(a => a.Account == account);
            user.Password = pwd;
            UserService.Change(user);
        }

        public static void Remove(int id)
        {
            var user = SysInfo.DB.Users.Find(id);
            user.IsAbort = true;
            SysInfo.DB.SaveChanges();
        }
        
    }
        public class AdminerService : BaseService<Adminers>
    {
        
    }
    public class WeChatService : BaseService<WeChats>
    {

    }
}
